package com.github.edu.repair.api.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * 故障描述
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-20
 */
public class TBxGzms implements Serializable {
    private Integer id;
    private Integer fwdl;
    private String fwfl;
    private String fwsm;
    private String bz;
    private Integer sfqy;
    private TBxFwdl bxFwdl;
    private String fwdlmc;
    @JsonIgnore
    private String gznr;
    @JsonIgnore
    private String gzmsnr;
    @JsonIgnore
    private String stateName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFwdl() {
        return fwdl;
    }

    public void setFwdl(Integer fwdl) {
        this.fwdl = fwdl;
    }

    public String getFwfl() {
        return fwfl;
    }

    public void setFwfl(String fwfl) {
        this.fwfl = fwfl;
    }

    public String getFwsm() {
        return fwsm;
    }

    public void setFwsm(String fwsm) {
        this.fwsm = fwsm;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        if(null!=sfqy&&1==sfqy){
            this.stateName="启用";
        }else {
            this.stateName="禁用";
        }
        this.sfqy = sfqy;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public TBxFwdl getBxFwdl() {
        return bxFwdl;
    }

    public void setBxFwdl(TBxFwdl bxFwdl) {
        if(null!=bxFwdl){
            this.fwdlmc=bxFwdl.getFwsm();
        }
        this.bxFwdl = bxFwdl;
    }

    public String getFwdlmc() {
        return fwdlmc;
    }

    public void setFwdlmc(String fwdlmc) {
        this.fwdlmc = fwdlmc;
    }

    public String getGznr() {
        return gznr;
    }

    public void setGznr(String gznr) {
        this.gznr = gznr;
    }

    public String getGzmsnr() {
        return gzmsnr;
    }

    public void setGzmsnr(String gzmsnr) {
        this.gzmsnr = gzmsnr;
    }
}
